package cn.edu.lzzy.mypractices.repository;

import cn.edu.lzzy.mypractices.entity.Result;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.UUID;

public interface ResultRepository extends JpaRepository<Result, UUID> {
    public List<Result> findAllByQuestionId(UUID questionId);
    public List<Result> findAllByStudentId(UUID userId);
    public Result findByStudentIdAndQuestionId(UUID userId, UUID questionId);
}
